$('#pop').on('click',function () {
    showPop('#exchange-pop');
    var num = $('#put').val();
    if(num && /^[A-Za-z0-9]+$/.test(num)){
        $('#succeed').removeClass('hide');
    }else {
        $('#defeated').removeClass('hide');
    }
});
$('.close').on('click',function () {
    $('#succeed').addClass('hide');
    $('#defeated').addClass('hide');
})
$('.btn-close').on('click',function () {
    $('.back').css('display','none');
})
